<h1>Listing roles</h1>

<table>
  <tr>
    <th>Laiv</th>
    <th>Identifier</th>
    <th>Gender</th>
    <th>Age</th>
    <th>Race</th>
    <th>Occupation</th>
    <th>Casting notes</th>
    <th>Family name</th>
    <th>First name</th>
    <th>Laiv user</th>
  </tr>

<% for role in @roles %>
  <tr>
    <td><%=h role.laiv_id %></td>
    <td><%=h role.identifier %></td>
    <td><%=h role.gender %></td>
    <td><%=h role.age %></td>
    <td><%=h role.race %></td>
    <td><%=h role.occupation %></td>
    <td><%=h role.casting_notes %></td>
    <td><%=h role.family_name %></td>
    <td><%=h role.first_name %></td>
    <td><%=h role.laiv_user_id %></td>
    <td><%= link_to 'Show', [role.laiv, role] %></td>
    <td><%= link_to 'Edit', edit_laiv_role_path(role.laiv, role) %></td>
    <td><%= link_to 'Destroy', [role.laiv, role], :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New role', new_laiv_role_path(@laiv) %>
